<div class="sub_pannel">
  <div class="content">
    <div class="sub_tabs clearfix">
      <ul>
        <li class="selected_tab">
          <a href="#">学习的课程</a>
        </li>
        <li>
          <%= link_to '创建的课程' ,my_courses_user_path(@current_user)%>
        </li>
        <li>
          <%= link_to '收藏的课程', favorates_user_path(@current_user) %>
        </li>
        <li>
          <%=link_to "创建新课程",categories_path,:class=>"new_course"%>
        </li>
      </ul>
    </div>
    <ul class="course_info">
      <%unless @learned_courses.empty?%>
        <%= render :partial=>"user_course" , :collection=>@learned_courses%>
      <%else%>
      <div id="no_content">你没有学习任何课程.</div>
      <%end%>
    </ul>
  </div>
</div>